<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>批量 IP 查询结果 - IP查询服务</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
    <header>
        <h1>批量 IP 查询结果</h1>
        <p>共查询 {{ results|length }} 个IP地址</p>
    </header>

    <div class="container">
        <div class="card result-container">
            <h2><i class="fas fa-list-alt"></i> 批量查询结果</h2>
            
            {% for result in results %}
            <div class="ip-info-card">
                <div class="ip-header">
                    <i class="fas fa-globe"></i>
                    <span id="ip-address">{{ result.ip }}</span>
                </div>
                
                <div class="info-grid">
                    {% for key, value in result.parsed_info %}
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas {{ key_icons[key] }}"></i>
                            <span>{{ key }}</span>
                        </div>
                        <div class="info-value">{{ value }}</div>
                    </div>
                    {% endfor %}
                </div>
            </div>
            
            {% if not loop.last %}
            <div class="divider"></div>
            {% endif %}
            {% endfor %}
            
            <a href="/" class="back-link">返回首页</a>
        </div>
        
        <footer>
            <p>IP查询服务 &copy; 2025 - 提供精准的IP地址信息查询</p>
        </footer>
    </div>
</body>
</html>
